package com.example.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chat.beans.Background;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BackgroundMapper extends BaseMapper<Background> {
    IPage<Background> selectBySearch(Page<Background> pages,
                                     @Param("appType") int appType,
                                     @Param("type") int type,
                                     @Param("status") int backStatus);

    List<Background> selectAllBySearch(@Param("appType") int appType,
                                       @Param("type") int type,
                                       @Param("status") int status);
}
